<?
require("config.php");
function db_prepare($db_host,$db_name,$db_login,$db_password) {
	$db_connection=mysql_connect($db_host,$db_login,$db_password);
	if (!$db_connection) {
		echo "SQL connection error !<br>";
		echo mysql_error();
		exit();
	}
	mysql_select_db($db_name);
	return $db_connection;
} 

function db_close() {
	@mysql_close();
} 
?> 
